import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		// 登录用户信息
		gloLoginUser: {
			username: '你好1',
		},
	},
	getters: {
		gloLoginUser (state) {
			return state.gloLoginUser;
		},
	},
	mutations: {
		setGloLoginUser (state, val) {
			state.gloLoginUser = val;
		}
	},
	actions: {
	},
	modules: {
	}
})
